.class public Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;
.super Ljava/lang/Object;
.source "FloatingActionMenu.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Builder;,
        Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;,
        Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$OnActionMenuClickListener;,
        Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;,
        Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$ItemViewQueueListener;,
        Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$ActionViewClickListener;
    }
.end annotation


# instance fields
.field private animated:Z

.field private animating:Z

.field private animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

.field private centerX:I

.field private centerY:I

.field private mBgMaskImg:Landroid/widget/ImageView;

.field private mCenterCircleRadius:I

.field private mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

.field private mProgressBarAnimator:Landroid/animation/ObjectAnimator;

.field private mainActionView:Landroid/view/View;

.field private open:Z

.field private radius:I

.field private startAngle:I

.field private stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

.field private subActionItems:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;",
            ">;"
        }
    .end annotation
.end field

.field private sweepAngle:I


# direct methods
.method public constructor <init>(Landroid/view/View;IIILjava/util/ArrayList;Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;ZLcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;)V
    .registers 13
    .param p1, "mainActionView"    # Landroid/view/View;
    .param p2, "startAngle"    # I
    .param p3, "sweepAngle"    # I
    .param p4, "radius"    # I
    .param p6, "animationHandler"    # Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;
    .param p7, "animated"    # Z
    .param p8, "stateChangeListener"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/view/View;",
            "III",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;",
            ">;",
            "Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;",
            "Z",
            "Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;",
            ")V"
        }
    .end annotation

    .prologue
    .line 87
    .local p5, "subActionItems":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;>;"
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 88
    iput-object p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    .line 89
    iput p2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->startAngle:I

    .line 90
    iput p3, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->sweepAngle:I

    .line 91
    iput p4, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    .line 92
    iput-object p5, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    .line 93
    iput-object p6, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    .line 94
    iput-boolean p7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animated:Z

    .line 96
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->open:Z

    .line 98
    iput-object p8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    .line 100
    const/4 v1, 0x1

    const/high16 v2, 0x42b40000

    invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    invoke-static {v1, v2, v3}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v1

    float-to-int v1, v1

    iput v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCenterCircleRadius:I

    .line 108
    if-eqz p6, :cond_2d

    .line 109
    invoke-virtual {p6, p0}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->setMenu(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)V

    .line 113
    :cond_2d
    invoke-virtual {p5}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_31
    :goto_31
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_61

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    .line 114
    .local v0, "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    iget v1, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    if-eqz v1, :cond_45

    iget v1, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    if-nez v1, :cond_31

    .line 117
    :cond_45
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActivityContentView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    iget-object v3, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 119
    iget-object v1, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/view/View;->setAlpha(F)V

    .line 121
    iget-object v1, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    new-instance v3, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$ItemViewQueueListener;

    invoke-direct {v3, p0, v0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$ItemViewQueueListener;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;)V

    invoke-virtual {v1, v3}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    goto :goto_31

    .line 124
    .end local v0    # "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    :cond_61
    return-void
.end method

.method static synthetic access$000(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    .prologue
    .line 44
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$100(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    .prologue
    .line 44
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    return-object v0
.end method

.method static synthetic access$200(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;)V
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;
    .param p1, "x1"    # Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    .prologue
    .line 44
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animateProgressBarScale(Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;)V

    return-void
.end method

.method static synthetic access$302(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;
    .param p1, "x1"    # Z

    .prologue
    .line 44
    iput-boolean p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animating:Z

    return p1
.end method

.method static synthetic access$400(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;

    .prologue
    .line 44
    iget-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animated:Z

    return v0
.end method

.method private animateBgMask(Landroid/widget/ImageView;F)V
    .registers 7
    .param p1, "imageView"    # Landroid/widget/ImageView;
    .param p2, "targetAlpha"    # F

    .prologue
    .line 170
    const-string v1, "alpha"

    const/4 v2, 0x1

    new-array v2, v2, [F

    const/4 v3, 0x0

    aput p2, v2, v3

    invoke-static {p1, v1, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 171
    .local v0, "alphaAnimator":Landroid/animation/ObjectAnimator;
    const-wide/16 v2, 0x168

    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 172
    new-instance v1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$2;

    invoke-direct {v1, p0, p2, p1}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$2;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;FLandroid/widget/ImageView;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 182
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 183
    return-void
.end method

.method private animateProgress(Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;F)V
    .registers 7
    .param p1, "progressBar"    # Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;
    .param p2, "targetProgress"    # F

    .prologue
    .line 127
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_11

    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_11

    .line 128
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V

    .line 131
    :cond_11
    const-string v0, "progress"

    const/4 v1, 0x1

    new-array v1, v1, [F

    const/4 v2, 0x0

    aput p2, v1, v2

    invoke-static {p1, v0, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    .line 132
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    const-wide/16 v2, 0x168

    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 134
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    new-instance v1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$1;

    invoke-direct {v1, p0, p2, p1}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$1;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;FLcom/zuimeia/ui/circularprogressbar/CircularProgressBar;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 158
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mProgressBarAnimator:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 159
    return-void
.end method

.method private animateProgressBarScale(Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;)V
    .registers 10
    .param p1, "progressBar"    # Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    .prologue
    const v7, 0x3f4ccccd

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 162
    sget-object v3, Landroid/view/View;->SCALE_X:Landroid/util/Property;

    new-array v4, v6, [F

    aput v7, v4, v5

    invoke-static {v3, v4}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v0

    .line 163
    .local v0, "scalXpvh":Landroid/animation/PropertyValuesHolder;
    sget-object v3, Landroid/view/View;->SCALE_Y:Landroid/util/Property;

    new-array v4, v6, [F

    aput v7, v4, v5

    invoke-static {v3, v4}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v1

    .line 164
    .local v1, "scalYpvh":Landroid/animation/PropertyValuesHolder;
    const/4 v3, 0x2

    new-array v3, v3, [Landroid/animation/PropertyValuesHolder;

    aput-object v0, v3, v5

    aput-object v1, v3, v6

    invoke-static {p1, v3}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v2

    .line 165
    .local v2, "scaleAnimator":Landroid/animation/ObjectAnimator;
    const-wide/16 v4, 0x12c

    invoke-virtual {v2, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 166
    invoke-virtual {v2}, Landroid/animation/ObjectAnimator;->start()V

    .line 167
    return-void
.end method

.method private calculateAngle()V
    .registers 12

    .prologue
    .line 595
    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v8}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-nez v8, :cond_9

    .line 709
    :goto_8
    return-void

    .line 601
    :cond_9
    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getX()F

    move-result v3

    .line 602
    .local v3, "minX":F
    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getY()F

    move-result v5

    .line 603
    .local v5, "minY":F
    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getWidth()I

    move-result v8

    int-to-float v8, v8

    add-float v1, v3, v8

    .line 604
    .local v1, "maxX":F
    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getHeight()I

    move-result v8

    int-to-float v8, v8

    add-float v2, v5, v8

    .line 606
    .local v2, "maxY":F
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    int-to-float v9, v8

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    const/4 v10, 0x0

    invoke-virtual {v8, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v8, v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    div-int/lit8 v8, v8, 0x2

    int-to-float v8, v8

    const v10, 0x3f266666

    mul-float/2addr v8, v10

    add-float v4, v9, v8

    .line 607
    .local v4, "minXRadius":F
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    int-to-float v9, v8

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    const/4 v10, 0x0

    invoke-virtual {v8, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v8, v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    div-int/lit8 v8, v8, 0x2

    int-to-float v8, v8

    const v10, 0x3f266666

    mul-float/2addr v8, v10

    add-float v6, v9, v8

    .line 609
    .local v6, "minYRadius":F
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    int-to-float v8, v8

    const/high16 v9, 0x3f000000

    mul-float v7, v8, v9

    .line 622
    .local v7, "topMargin":F
    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v8}, Ljava/util/ArrayList;->size()I

    move-result v0

    .line 623
    .local v0, "itemSize":I
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    cmpg-float v8, v8, v4

    if-gez v8, :cond_8c

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    add-float v9, v6, v7

    cmpg-float v8, v8, v9

    if-gez v8, :cond_8c

    .line 624
    const/4 v8, 0x5

    if-ge v0, v8, :cond_80

    .line 625
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 626
    const/16 v8, -0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto :goto_8

    .line 628
    :cond_80
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 629
    const/16 v8, -0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 632
    :cond_8c
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    sub-float v9, v1, v4

    cmpl-float v8, v8, v9

    if-lez v8, :cond_b9

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    add-float v9, v6, v7

    cmpg-float v8, v8, v9

    if-gez v8, :cond_b9

    .line 633
    const/4 v8, 0x5

    if-ge v0, v8, :cond_ad

    .line 634
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 635
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 637
    :cond_ad
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 638
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 641
    :cond_b9
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    cmpg-float v8, v8, v4

    if-gez v8, :cond_e2

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    sub-float v9, v2, v6

    cmpl-float v8, v8, v9

    if-lez v8, :cond_e2

    .line 642
    const/4 v8, 0x5

    if-ge v0, v8, :cond_d7

    .line 643
    const/4 v8, 0x0

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 644
    const/16 v8, -0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 646
    :cond_d7
    const/4 v8, 0x0

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 647
    const/16 v8, -0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 650
    :cond_e2
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    sub-float v9, v1, v4

    cmpl-float v8, v8, v9

    if-lez v8, :cond_10f

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    sub-float v9, v2, v6

    cmpl-float v8, v8, v9

    if-lez v8, :cond_10f

    .line 651
    const/4 v8, 0x5

    if-ge v0, v8, :cond_103

    .line 652
    const/16 v8, 0xb4

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 653
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 655
    :cond_103
    const/16 v8, 0xb4

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 656
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 659
    :cond_10f
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    cmpl-float v8, v8, v4

    if-ltz v8, :cond_143

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    sub-float v9, v1, v4

    cmpg-float v8, v8, v9

    if-gtz v8, :cond_143

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    add-float v9, v6, v7

    cmpg-float v8, v8, v9

    if-gez v8, :cond_143

    .line 660
    const/4 v8, 0x5

    if-ge v0, v8, :cond_137

    .line 661
    const/16 v8, -0xd2

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 662
    const/16 v8, -0x78

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 664
    :cond_137
    const/16 v8, -0xc3

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 665
    const/16 v8, -0x96

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 668
    :cond_143
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    cmpl-float v8, v8, v4

    if-ltz v8, :cond_177

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    sub-float v9, v1, v4

    cmpg-float v8, v8, v9

    if-gtz v8, :cond_177

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    sub-float v9, v2, v6

    cmpl-float v8, v8, v9

    if-lez v8, :cond_177

    .line 669
    const/4 v8, 0x5

    if-ge v0, v8, :cond_16b

    .line 670
    const/16 v8, -0x96

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 671
    const/16 v8, 0x78

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 673
    :cond_16b
    const/16 v8, -0xa5

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 674
    const/16 v8, 0x96

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 677
    :cond_177
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    cmpg-float v8, v8, v4

    if-gez v8, :cond_1a7

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    cmpl-float v8, v8, v6

    if-ltz v8, :cond_1a7

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    sub-float v9, v2, v6

    cmpg-float v8, v8, v9

    if-gtz v8, :cond_1a7

    .line 680
    const/4 v8, 0x5

    if-ge v0, v8, :cond_19c

    .line 681
    const/4 v8, 0x0

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 682
    const/16 v8, -0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 684
    :cond_19c
    const/4 v8, 0x0

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 685
    const/16 v8, -0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 688
    :cond_1a7
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    int-to-float v8, v8

    sub-float v9, v1, v4

    cmpl-float v8, v8, v9

    if-lez v8, :cond_1db

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    cmpl-float v8, v8, v6

    if-ltz v8, :cond_1db

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    int-to-float v8, v8

    sub-float v9, v2, v6

    cmpg-float v8, v8, v9

    if-gtz v8, :cond_1db

    .line 691
    const/4 v8, 0x5

    if-ge v0, v8, :cond_1cf

    .line 692
    const/16 v8, 0xb4

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 693
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 695
    :cond_1cf
    const/16 v8, 0xb4

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 696
    const/16 v8, 0x5a

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 700
    :cond_1db
    const/4 v8, 0x5

    if-ge v0, v8, :cond_1ea

    .line 701
    const/16 v8, -0x96

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 702
    const/16 v8, 0x78

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8

    .line 704
    :cond_1ea
    const/16 v8, -0xa5

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setStartAngle(I)V

    .line 705
    const/16 v8, 0x96

    invoke-virtual {p0, v8}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->setSweepAngle(I)V

    goto/16 :goto_8
.end method

.method private calculateItemPositions()V
    .registers 16

    .prologue
    const/4 v14, 0x1

    const/4 v13, 0x0

    .line 715
    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    .line 716
    .local v8, "radius":I
    iget v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->sweepAngle:I

    invoke-static {v9}, Ljava/lang/Math;->abs(I)I

    move-result v9

    const/16 v10, 0x78

    if-ge v9, v10, :cond_1d

    .line 717
    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 719
    .local v5, "itemSize":I
    int-to-float v10, v8

    const/4 v9, 0x5

    if-ge v5, v9, :cond_b5

    const v9, 0x3f99999a

    :goto_1b
    mul-float/2addr v9, v10

    float-to-int v8, v9

    .line 724
    .end local v5    # "itemSize":I
    :cond_1d
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActionViewCenter()Landroid/graphics/Point;

    move-result-object v1

    .line 725
    .local v1, "center":Landroid/graphics/Point;
    new-instance v0, Landroid/graphics/RectF;

    iget v9, v1, Landroid/graphics/Point;->x:I

    sub-int/2addr v9, v8

    int-to-float v9, v9

    iget v10, v1, Landroid/graphics/Point;->y:I

    sub-int/2addr v10, v8

    int-to-float v10, v10

    iget v11, v1, Landroid/graphics/Point;->x:I

    add-int/2addr v11, v8

    int-to-float v11, v11

    iget v12, v1, Landroid/graphics/Point;->y:I

    add-int/2addr v12, v8

    int-to-float v12, v12

    invoke-direct {v0, v9, v10, v11, v12}, Landroid/graphics/RectF;-><init>(FFFF)V

    .line 727
    .local v0, "area":Landroid/graphics/RectF;
    new-instance v7, Landroid/graphics/Path;

    invoke-direct {v7}, Landroid/graphics/Path;-><init>()V

    .line 728
    .local v7, "orbit":Landroid/graphics/Path;
    iget v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->startAngle:I

    int-to-float v9, v9

    iget v10, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->sweepAngle:I

    int-to-float v10, v10

    invoke-virtual {v7, v0, v9, v10}, Landroid/graphics/Path;->addArc(Landroid/graphics/RectF;FF)V

    .line 730
    new-instance v6, Landroid/graphics/PathMeasure;

    invoke-direct {v6, v7, v13}, Landroid/graphics/PathMeasure;-><init>(Landroid/graphics/Path;Z)V

    .line 734
    .local v6, "measure":Landroid/graphics/PathMeasure;
    iget v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->sweepAngle:I

    invoke-static {v9}, Ljava/lang/Math;->abs(I)I

    move-result v9

    const/16 v10, 0x168

    if-ge v9, v10, :cond_5b

    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9}, Ljava/util/ArrayList;->size()I

    move-result v9

    if-gt v9, v14, :cond_b9

    .line 735
    :cond_5b
    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9}, Ljava/util/ArrayList;->size()I

    move-result v3

    .line 741
    .local v3, "divisor":I
    :goto_61
    const/4 v4, 0x0

    .local v4, "i":I
    :goto_62
    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9}, Ljava/util/ArrayList;->size()I

    move-result v9

    if-ge v4, v9, :cond_c2

    .line 742
    const/4 v9, 0x2

    new-array v2, v9, [F

    fill-array-data v2, :array_c4

    .line 743
    .local v2, "coords":[F
    int-to-float v9, v4

    invoke-virtual {v6}, Landroid/graphics/PathMeasure;->getLength()F

    move-result v10

    mul-float/2addr v9, v10

    int-to-float v10, v3

    div-float/2addr v9, v10

    const/4 v10, 0x0

    invoke-virtual {v6, v9, v2, v10}, Landroid/graphics/PathMeasure;->getPosTan(F[F[F)Z

    .line 745
    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    aget v10, v2, v13

    float-to-int v11, v10

    iget-object v10, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v10, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v10, v10, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    div-int/lit8 v10, v10, 0x2

    sub-int v10, v11, v10

    iput v10, v9, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->x:I

    .line 746
    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    aget v10, v2, v14

    float-to-int v11, v10

    iget-object v10, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v10, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v10, v10, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    div-int/lit8 v10, v10, 0x2

    sub-int v10, v11, v10

    iput v10, v9, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->y:I

    .line 741
    add-int/lit8 v4, v4, 0x1

    goto :goto_62

    .line 719
    .end local v0    # "area":Landroid/graphics/RectF;
    .end local v1    # "center":Landroid/graphics/Point;
    .end local v2    # "coords":[F
    .end local v3    # "divisor":I
    .end local v4    # "i":I
    .end local v6    # "measure":Landroid/graphics/PathMeasure;
    .end local v7    # "orbit":Landroid/graphics/Path;
    .restart local v5    # "itemSize":I
    :cond_b5
    const/high16 v9, 0x3fc00000

    goto/16 :goto_1b

    .line 737
    .end local v5    # "itemSize":I
    .restart local v0    # "area":Landroid/graphics/RectF;
    .restart local v1    # "center":Landroid/graphics/Point;
    .restart local v6    # "measure":Landroid/graphics/PathMeasure;
    .restart local v7    # "orbit":Landroid/graphics/Path;
    :cond_b9
    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v9}, Ljava/util/ArrayList;->size()I

    move-result v9

    add-int/lit8 v3, v9, -0x1

    .restart local v3    # "divisor":I
    goto :goto_61

    .line 749
    .restart local v4    # "i":I
    :cond_c2
    return-void

    .line 742
    nop

    :array_c4
    .array-data 4
        0x0
        0x0
    .end array-data
.end method


# virtual methods
.method public close(ZLcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;)V
    .registers 7
    .param p1, "animated"    # Z
    .param p2, "selectedItem"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    .prologue
    const/4 v2, 0x0

    .line 316
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->isOpen()Z

    move-result v1

    if-nez v1, :cond_8

    .line 360
    :cond_7
    :goto_7
    return-void

    .line 321
    :cond_8
    if-eqz p1, :cond_48

    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    if-eqz v1, :cond_48

    .line 322
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    invoke-virtual {v1}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->isAnimating()Z

    move-result v1

    if-eqz v1, :cond_1b

    .line 325
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    invoke-virtual {v1}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->cancelAnimating()V

    .line 328
    :cond_1b
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    if-eqz v1, :cond_24

    .line 329
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    invoke-direct {p0, v1, v2}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animateProgress(Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;F)V

    .line 332
    :cond_24
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    if-eqz v1, :cond_2d

    .line 333
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    invoke-direct {p0, v1, v2}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animateBgMask(Landroid/widget/ImageView;F)V

    .line 336
    :cond_2d
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActionViewCenter()Landroid/graphics/Point;

    move-result-object v2

    new-instance v3, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$4;

    invoke-direct {v3, p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$4;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)V

    invoke-virtual {v1, v2, p2, v3}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->animateMenuClosing(Landroid/graphics/Point;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;Landroid/animation/Animator$AnimatorListener;)V

    .line 355
    :cond_3b
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->open:Z

    .line 357
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    if-eqz v1, :cond_7

    .line 358
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    invoke-interface {v1, p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;->onMenuClosed(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)V

    goto :goto_7

    .line 350
    :cond_48
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_49
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_3b

    .line 351
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActivityContentView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v2, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 350
    add-int/lit8 v0, v0, 0x1

    goto :goto_49
.end method

.method public getActionViewCenter()Landroid/graphics/Point;
    .registers 3

    .prologue
    .line 568
    new-instance v0, Landroid/graphics/Point;

    invoke-direct {v0}, Landroid/graphics/Point;-><init>()V

    .line 569
    .local v0, "point":Landroid/graphics/Point;
    iget v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    iput v1, v0, Landroid/graphics/Point;->x:I

    .line 570
    iget v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    iput v1, v0, Landroid/graphics/Point;->y:I

    .line 571
    return-object v0
.end method

.method public getActivityContentView()Landroid/view/View;
    .registers 2

    .prologue
    .line 772
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    return-object v0
.end method

.method public getHitItem(II)Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .registers 12
    .param p1, "x"    # I
    .param p2, "y"    # I

    .prologue
    .line 542
    const/4 v0, 0x0

    .line 543
    .local v0, "addPadding":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    iget-object v4, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v1, v4, :cond_5b

    .line 544
    iget-object v4, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    .line 545
    .local v2, "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    new-instance v3, Landroid/graphics/Rect;

    iget-object v4, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getX()F

    move-result v4

    float-to-int v4, v4

    sub-int/2addr v4, v0

    iget-object v5, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getY()F

    move-result v5

    float-to-int v5, v5

    sub-int/2addr v5, v0

    iget-object v6, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getX()F

    move-result v6

    float-to-int v6, v6

    iget-object v7, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getWidth()I

    move-result v7

    add-int/2addr v6, v7

    add-int/2addr v6, v0

    iget-object v7, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    .line 546
    invoke-virtual {v7}, Landroid/view/View;->getY()F

    move-result v7

    float-to-int v7, v7

    iget-object v8, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getHeight()I

    move-result v8

    add-int/2addr v7, v8

    add-int/2addr v7, v0

    invoke-direct {v3, v4, v5, v6, v7}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 550
    .local v3, "rect":Landroid/graphics/Rect;
    invoke-virtual {v3, p1, p2}, Landroid/graphics/Rect;->contains(II)Z

    move-result v4

    if-eqz v4, :cond_58

    iget-object v4, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getScaleX()F

    move-result v4

    const/high16 v5, 0x3f800000

    cmpl-float v4, v4, v5

    if-ltz v4, :cond_58

    .line 555
    .end local v2    # "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .end local v3    # "rect":Landroid/graphics/Rect;
    :goto_57
    return-object v2

    .line 543
    .restart local v2    # "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .restart local v3    # "rect":Landroid/graphics/Rect;
    :cond_58
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 555
    .end local v2    # "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .end local v3    # "rect":Landroid/graphics/Rect;
    :cond_5b
    const/4 v2, 0x0

    goto :goto_57
.end method

.method public getRadius()I
    .registers 2

    .prologue
    .line 755
    iget v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    return v0
.end method

.method public getSubActionItems()Ljava/util/ArrayList;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;",
            ">;"
        }
    .end annotation

    .prologue
    .line 762
    iget-object v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    return-object v0
.end method

.method public hideTtitleView(Landroid/view/View;Landroid/animation/Animator$AnimatorListener;)V
    .registers 13
    .param p1, "titleView"    # Landroid/view/View;
    .param p2, "listener"    # Landroid/animation/Animator$AnimatorListener;

    .prologue
    const/4 v9, 0x2

    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 446
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_12

    .line 447
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/animation/Animator;

    invoke-virtual {v4}, Landroid/animation/Animator;->cancel()V

    .line 450
    :cond_12
    const/high16 v4, 0x41200000

    invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v5

    invoke-static {v7, v4, v5}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v0

    .line 452
    .local v0, "dp_10":F
    sget-object v4, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;

    new-array v5, v9, [F

    invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F

    move-result v6

    aput v6, v5, v8

    aput v0, v5, v7

    invoke-static {v4, v5}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v2

    .line 453
    .local v2, "pTransY":Landroid/animation/PropertyValuesHolder;
    sget-object v4, Landroid/view/View;->ALPHA:Landroid/util/Property;

    new-array v5, v7, [F

    const/4 v6, 0x0

    aput v6, v5, v8

    invoke-static {v4, v5}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v1

    .line 454
    .local v1, "pAlpha":Landroid/animation/PropertyValuesHolder;
    new-array v4, v9, [Landroid/animation/PropertyValuesHolder;

    aput-object v2, v4, v8

    aput-object v1, v4, v7

    invoke-static {p1, v4}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v3

    .line 455
    .local v3, "titleViewAnimator":Landroid/animation/ObjectAnimator;
    const-wide/16 v4, 0x12c

    invoke-virtual {v3, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 456
    new-instance v4, Landroid/view/animation/OvershootInterpolator;

    invoke-direct {v4}, Landroid/view/animation/OvershootInterpolator;-><init>()V

    invoke-virtual {v3, v4}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 457
    if-eqz p2, :cond_57

    .line 458
    invoke-virtual {v3, p2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 461
    :cond_57
    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 462
    invoke-virtual {v3}, Landroid/animation/ObjectAnimator;->start()V

    .line 464
    return-void
.end method

.method public isAnimating()Z
    .registers 2

    .prologue
    .line 377
    iget-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animating:Z

    return v0
.end method

.method public isOpen()Z
    .registers 2

    .prologue
    .line 384
    iget-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->open:Z

    return v0
.end method

.method public open(Z)V
    .registers 15
    .param p1, "animated"    # Z

    .prologue
    const/4 v8, -0x2

    const/16 v12, 0x33

    const/high16 v11, 0x3f800000

    const/4 v10, 0x0

    .line 196
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->isOpen()Z

    move-result v7

    if-eqz v7, :cond_d

    .line 307
    :cond_c
    :goto_c
    return-void

    .line 201
    :cond_d
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActionViewCenter()Landroid/graphics/Point;

    move-result-object v1

    .line 203
    .local v1, "center":Landroid/graphics/Point;
    invoke-direct {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->calculateItemPositions()V

    .line 205
    if-eqz p1, :cond_152

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    if-eqz v7, :cond_152

    .line 207
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->isAnimating()Z

    move-result v7

    if-eqz v7, :cond_27

    .line 210
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    invoke-virtual {v7}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->cancelAnimating()V

    .line 213
    :cond_27
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    if-nez v7, :cond_40

    .line 214
    new-instance v4, Landroid/widget/ImageView;

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v7

    invoke-direct {v4, v7}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 215
    .local v4, "imageView":Landroid/widget/ImageView;
    sget v7, Lcom/zuimeia/ui/R$drawable;->home_pic_mask_menu:I

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 216
    invoke-virtual {v4, v10, v10}, Landroid/widget/ImageView;->measure(II)V

    .line 218
    iput-object v4, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    .line 221
    .end local v4    # "imageView":Landroid/widget/ImageView;
    :cond_40
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    invoke-virtual {v7}, Landroid/widget/ImageView;->getParent()Landroid/view/ViewParent;

    move-result-object v7

    if-nez v7, :cond_71

    .line 222
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v8, v8}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 223
    .local v0, "bgMaskParams":Landroid/widget/FrameLayout$LayoutParams;
    iget v7, v1, Landroid/graphics/Point;->x:I

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    invoke-virtual {v8}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v8

    div-int/lit8 v8, v8, 0x2

    sub-int/2addr v7, v8

    iget v8, v1, Landroid/graphics/Point;->y:I

    iget-object v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    invoke-virtual {v9}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v9

    div-int/lit8 v9, v9, 0x2

    sub-int/2addr v8, v9

    invoke-virtual {v0, v7, v8, v10, v10}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 224
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActivityContentView()Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/view/ViewGroup;

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    invoke-virtual {v7, v8, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 227
    .end local v0    # "bgMaskParams":Landroid/widget/FrameLayout$LayoutParams;
    :cond_71
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mBgMaskImg:Landroid/widget/ImageView;

    invoke-direct {p0, v7, v11}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animateBgMask(Landroid/widget/ImageView;F)V

    .line 229
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_77
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    if-ge v3, v7, :cond_e0

    .line 244
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v7

    if-nez v7, :cond_dd

    .line 245
    new-instance v5, Landroid/widget/FrameLayout$LayoutParams;

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v8, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    invoke-direct {v5, v8, v7, v12}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    .line 247
    .local v5, "params":Landroid/widget/FrameLayout$LayoutParams;
    iget v8, v1, Landroid/graphics/Point;->x:I

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    div-int/lit8 v7, v7, 0x2

    sub-int/2addr v8, v7

    iget v9, v1, Landroid/graphics/Point;->y:I

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    div-int/lit8 v7, v7, 0x2

    sub-int v7, v9, v7

    invoke-virtual {v5, v8, v7, v10, v10}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 249
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActivityContentView()Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/view/ViewGroup;

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v8, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v8, v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v7, v8, v5}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 229
    .end local v5    # "params":Landroid/widget/FrameLayout$LayoutParams;
    :cond_dd
    add-int/lit8 v3, v3, 0x1

    goto :goto_77

    .line 253
    :cond_e0
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    if-nez v7, :cond_fe

    .line 254
    new-instance v2, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mainActionView:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v7

    invoke-direct {v2, v7}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;-><init>(Landroid/content/Context;)V

    .line 255
    .local v2, "circularProgressBar":Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;
    invoke-virtual {v2, v10}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->setMarkerEnabled(Z)V

    .line 256
    invoke-virtual {v2, v10}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->setThumbEnabled(Z)V

    .line 257
    const/4 v7, -0x1

    invoke-virtual {v2, v7}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->setProgressColor(I)V

    .line 258
    invoke-virtual {v2, v10}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->setProgressBackgroundColor(I)V

    .line 260
    iput-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    .line 263
    .end local v2    # "circularProgressBar":Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;
    :cond_fe
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    invoke-virtual {v7}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->getParent()Landroid/view/ViewParent;

    move-result-object v7

    if-nez v7, :cond_135

    .line 265
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    invoke-virtual {v7, v11}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->setScaleX(F)V

    .line 266
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    invoke-virtual {v7, v11}, Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;->setScaleY(F)V

    .line 268
    new-instance v6, Landroid/widget/FrameLayout$LayoutParams;

    iget v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCenterCircleRadius:I

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCenterCircleRadius:I

    invoke-direct {v6, v7, v8, v12}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    .line 269
    .local v6, "progressBarParams":Landroid/widget/FrameLayout$LayoutParams;
    iget v7, v1, Landroid/graphics/Point;->x:I

    iget v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCenterCircleRadius:I

    div-int/lit8 v8, v8, 0x2

    sub-int/2addr v7, v8

    iget v8, v1, Landroid/graphics/Point;->y:I

    iget v9, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCenterCircleRadius:I

    div-int/lit8 v9, v9, 0x2

    sub-int/2addr v8, v9

    invoke-virtual {v6, v7, v8, v10, v10}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 270
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActivityContentView()Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/view/ViewGroup;

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    invoke-virtual {v7, v8, v6}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 273
    .end local v6    # "progressBarParams":Landroid/widget/FrameLayout$LayoutParams;
    :cond_135
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCircularProgressBar:Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;

    invoke-direct {p0, v7, v11}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animateProgress(Lcom/zuimeia/ui/circularprogressbar/CircularProgressBar;F)V

    .line 276
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->animationHandler:Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;

    new-instance v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$3;

    invoke-direct {v8, p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$3;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)V

    invoke-virtual {v7, v1, v8}, Lcom/zuimeia/ui/floatingactionmenu/animation/MenuAnimationHandler;->animateMenuOpening(Landroid/graphics/Point;Landroid/animation/Animator$AnimatorListener;)V

    .line 302
    :cond_144
    const/4 v7, 0x1

    iput-boolean v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->open:Z

    .line 304
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    if-eqz v7, :cond_c

    .line 305
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    invoke-interface {v7, p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;->onMenuOpened(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;)V

    goto/16 :goto_c

    .line 290
    .end local v3    # "i":I
    :cond_152
    const/4 v3, 0x0

    .restart local v3    # "i":I
    :goto_153
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    if-ge v3, v7, :cond_144

    .line 292
    new-instance v5, Landroid/widget/FrameLayout$LayoutParams;

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v8, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    invoke-direct {v5, v8, v7, v12}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    .line 294
    .restart local v5    # "params":Landroid/widget/FrameLayout$LayoutParams;
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v8, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->x:I

    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->y:I

    invoke-virtual {v5, v8, v7, v10, v10}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 295
    iget-object v7, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v7, v7, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v7, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 298
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->getActivityContentView()Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/view/ViewGroup;

    iget-object v8, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v8, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v8, v8, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v7, v8, v5}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 290
    add-int/lit8 v3, v3, 0x1

    goto :goto_153
.end method

.method public resetItem(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;)V
    .registers 6
    .param p1, "except"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    .prologue
    .line 516
    iget-object v1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_6
    :goto_6
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3c

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    .line 517
    .local v0, "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    if-eq v0, p1, :cond_6

    iget-object v2, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->animator:Landroid/animation/Animator;

    if-eqz v2, :cond_6

    .line 519
    iget-object v2, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->animator:Landroid/animation/Animator;

    invoke-virtual {v2}, Landroid/animation/Animator;->cancel()V

    .line 520
    const/high16 v2, 0x3f800000

    invoke-virtual {p0, v0, v2}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->scaleItemView(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;F)V

    .line 522
    iget-object v2, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->titleView:Landroid/view/View;

    if-eqz v2, :cond_38

    .line 523
    iget-object v2, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->titleView:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    if-eqz v2, :cond_38

    .line 524
    iget-object v2, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->titleView:Landroid/view/View;

    new-instance v3, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$6;

    invoke-direct {v3, p0, v0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$6;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;)V

    invoke-virtual {p0, v2, v3}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->hideTtitleView(Landroid/view/View;Landroid/animation/Animator$AnimatorListener;)V

    .line 535
    :cond_38
    const/4 v2, 0x0

    iput-object v2, v0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->animator:Landroid/animation/Animator;

    goto :goto_6

    .line 538
    .end local v0    # "item":Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    :cond_3c
    return-void
.end method

.method public scaleItemView(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;F)V
    .registers 11
    .param p1, "item"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;
    .param p2, "scale"    # F

    .prologue
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 468
    const/high16 v6, 0x3f800000

    cmpl-float v6, p2, v6

    if-lez v6, :cond_58

    move v3, v4

    .line 470
    .local v3, "selected":Z
    :goto_9
    sget-object v6, Landroid/view/View;->SCALE_X:Landroid/util/Property;

    new-array v7, v4, [F

    aput p2, v7, v5

    invoke-static {v6, v7}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v1

    .line 471
    .local v1, "pvhsX":Landroid/animation/PropertyValuesHolder;
    sget-object v6, Landroid/view/View;->SCALE_Y:Landroid/util/Property;

    new-array v7, v4, [F

    aput p2, v7, v5

    invoke-static {v6, v7}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v2

    .line 472
    .local v2, "pvhsY":Landroid/animation/PropertyValuesHolder;
    iget-object v6, p1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    const/4 v7, 0x2

    new-array v7, v7, [Landroid/animation/PropertyValuesHolder;

    aput-object v1, v7, v5

    aput-object v2, v7, v4

    invoke-static {v6, v7}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 473
    .local v0, "animator":Landroid/animation/ObjectAnimator;
    if-eqz v3, :cond_5a

    const-wide/16 v6, 0x1c2

    :goto_2e
    invoke-virtual {v0, v6, v7}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 475
    if-eqz v3, :cond_5d

    .line 476
    iget-object v5, p1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v5, v4}, Landroid/view/View;->setPressed(Z)V

    .line 481
    :goto_38
    iget-object v4, p1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->titleView:Landroid/view/View;

    if-eqz v4, :cond_48

    if-eqz v3, :cond_48

    .line 482
    iget-object v4, p1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->titleView:Landroid/view/View;

    new-instance v5, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$5;

    invoke-direct {v5, p0, p1}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$5;-><init>(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;)V

    invoke-virtual {p0, v4, v5}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->showTitleView(Landroid/view/View;Landroid/animation/Animator$AnimatorListener;)V

    .line 510
    :cond_48
    if-eqz v3, :cond_63

    new-instance v4, Landroid/view/animation/OvershootInterpolator;

    invoke-direct {v4}, Landroid/view/animation/OvershootInterpolator;-><init>()V

    :goto_4f
    invoke-virtual {v0, v4}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 511
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 512
    iput-object v0, p1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->animator:Landroid/animation/Animator;

    .line 513
    return-void

    .end local v0    # "animator":Landroid/animation/ObjectAnimator;
    .end local v1    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    .end local v2    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    .end local v3    # "selected":Z
    :cond_58
    move v3, v5

    .line 468
    goto :goto_9

    .line 473
    .restart local v0    # "animator":Landroid/animation/ObjectAnimator;
    .restart local v1    # "pvhsX":Landroid/animation/PropertyValuesHolder;
    .restart local v2    # "pvhsY":Landroid/animation/PropertyValuesHolder;
    .restart local v3    # "selected":Z
    :cond_5a
    const-wide/16 v6, 0x168

    goto :goto_2e

    .line 478
    :cond_5d
    iget-object v4, p1, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v4, v5}, Landroid/view/View;->setPressed(Z)V

    goto :goto_38

    .line 510
    :cond_63
    new-instance v4, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v4}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    goto :goto_4f
.end method

.method public setCenter(II)V
    .registers 3
    .param p1, "centerX"    # I
    .param p2, "centerY"    # I

    .prologue
    .line 575
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerX:I

    .line 576
    iput p2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->centerY:I

    .line 578
    invoke-direct {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->calculateAngle()V

    .line 579
    invoke-direct {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->calculateItemPositions()V

    .line 580
    return-void
.end method

.method public setCenterCircleRadius(I)V
    .registers 2
    .param p1, "centerCircleRadius"    # I

    .prologue
    .line 186
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->mCenterCircleRadius:I

    .line 187
    return-void
.end method

.method public setRadius(I)V
    .registers 2
    .param p1, "radius"    # I

    .prologue
    .line 591
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->radius:I

    .line 592
    return-void
.end method

.method public setStartAngle(I)V
    .registers 2
    .param p1, "startAngle"    # I

    .prologue
    .line 583
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->startAngle:I

    .line 584
    return-void
.end method

.method public setStateChangeListener(Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    .prologue
    .line 787
    iput-object p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->stateChangeListener:Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$MenuStateChangeListener;

    .line 788
    return-void
.end method

.method public setSweepAngle(I)V
    .registers 2
    .param p1, "sweepAngle"    # I

    .prologue
    .line 587
    iput p1, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->sweepAngle:I

    .line 588
    return-void
.end method

.method public showTitleView(Landroid/view/View;Landroid/animation/Animator$AnimatorListener;)V
    .registers 14
    .param p1, "titleView"    # Landroid/view/View;
    .param p2, "listener"    # Landroid/animation/Animator$AnimatorListener;

    .prologue
    const/4 v10, 0x2

    const/4 v9, 0x0

    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 426
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_13

    .line 427
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/animation/Animator;

    invoke-virtual {v4}, Landroid/animation/Animator;->cancel()V

    .line 429
    :cond_13
    const/high16 v4, 0x41200000

    invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v5

    invoke-static {v7, v4, v5}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v0

    .line 431
    .local v0, "dp_10":F
    sget-object v4, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;

    new-array v5, v10, [F

    invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F

    move-result v6

    cmpl-float v6, v6, v9

    if-nez v6, :cond_64

    .end local v0    # "dp_10":F
    :goto_2d
    aput v0, v5, v8

    aput v9, v5, v7

    invoke-static {v4, v5}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v2

    .line 433
    .local v2, "pTransY":Landroid/animation/PropertyValuesHolder;
    sget-object v4, Landroid/view/View;->ALPHA:Landroid/util/Property;

    new-array v5, v7, [F

    const/high16 v6, 0x3f800000

    aput v6, v5, v8

    invoke-static {v4, v5}, Landroid/animation/PropertyValuesHolder;->ofFloat(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;

    move-result-object v1

    .line 434
    .local v1, "pAlpha":Landroid/animation/PropertyValuesHolder;
    new-array v4, v10, [Landroid/animation/PropertyValuesHolder;

    aput-object v2, v4, v8

    aput-object v1, v4, v7

    invoke-static {p1, v4}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;

    move-result-object v3

    .line 435
    .local v3, "titleViewAnimator":Landroid/animation/ObjectAnimator;
    const-wide/16 v4, 0x258

    invoke-virtual {v3, v4, v5}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 436
    new-instance v4, Landroid/view/animation/OvershootInterpolator;

    invoke-direct {v4}, Landroid/view/animation/OvershootInterpolator;-><init>()V

    invoke-virtual {v3, v4}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 437
    if-eqz p2, :cond_5d

    .line 438
    invoke-virtual {v3, p2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 441
    :cond_5d
    invoke-virtual {p1, v3}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 442
    invoke-virtual {v3}, Landroid/animation/ObjectAnimator;->start()V

    .line 443
    return-void

    .line 431
    .end local v1    # "pAlpha":Landroid/animation/PropertyValuesHolder;
    .end local v2    # "pTransY":Landroid/animation/PropertyValuesHolder;
    .end local v3    # "titleViewAnimator":Landroid/animation/ObjectAnimator;
    .restart local v0    # "dp_10":F
    :cond_64
    invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F

    move-result v0

    goto :goto_2d
.end method

.method public toggle(Z)V
    .registers 3
    .param p1, "animated"    # Z

    .prologue
    .line 369
    iget-boolean v0, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->open:Z

    if-eqz v0, :cond_9

    .line 370
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->close(ZLcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;)V

    .line 374
    :goto_8
    return-void

    .line 372
    :cond_9
    invoke-virtual {p0, p1}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->open(Z)V

    goto :goto_8
.end method

.method public updateItemPositions()V
    .registers 7

    .prologue
    const/4 v5, 0x0

    .line 392
    invoke-virtual {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->isOpen()Z

    move-result v2

    if-nez v2, :cond_8

    .line 406
    :cond_7
    return-void

    .line 396
    :cond_8
    invoke-direct {p0}, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->calculateItemPositions()V

    .line 399
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_c
    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_7

    .line 401
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v3, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->width:I

    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v2, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->height:I

    const/16 v4, 0x33

    invoke-direct {v1, v3, v2, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    .line 403
    .local v1, "params":Landroid/widget/FrameLayout$LayoutParams;
    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v3, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->x:I

    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget v2, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->y:I

    invoke-virtual {v1, v3, v2, v5, v5}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 404
    iget-object v2, p0, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu;->subActionItems:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;

    iget-object v2, v2, Lcom/zuimeia/ui/floatingactionmenu/FloatingActionMenu$Item;->view:Landroid/view/View;

    invoke-virtual {v2, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 399
    add-int/lit8 v0, v0, 0x1

    goto :goto_c
.end method
